package com.mifengs.mall.di.module;

import com.mifengs.commonbase.di.scope.ActivityScope;
import com.mifengs.commonbase.di.scope.FragmentScope;
import com.mifengs.mall.ui.openself.MaterialSubContract;
import com.mifengs.mall.ui.openself.MaterialSubPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by lihaoqi on 2017/11/17.
 */
@Module
public class MaterialSubModule {

    public final MaterialSubContract.View mView;

    public MaterialSubModule(MaterialSubContract.View mView) {
        this.mView = mView;
    }

    @FragmentScope
    @Provides
    public MaterialSubPresenter providePresenter() {
        return new MaterialSubPresenter(mView);
    }

}
